#
# Be sure to run `pod lib lint ZBarSDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'ZBarSDK'
  s.version          = '1.3.2'
  s.summary          = 'ZBarSDK替换UIWebView为WKWebVIew'

  s.homepage         = 'http://zbar.sourceforge.net/'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'Jeff Brown' => 'spadix@users.sourceforge.net' }
  s.source           = { :git => 'git@gitee.com:callmedoby/ZBar.git', :tag => 'iPhoneSDK-1.3.2' }

  s.ios.deployment_target = '11.0'

  s.public_header_files = [
    "iphone/**/**/*.h",
    "include/*.h"
  ]
  s.source_files = [
    "include/zbar.h",
    "zbar/**/*.h",
    "iphone/*.h",
    "iphone/include/**/*.h",
    "zbar/{config,decoder,error,image,img_scanner,refcnt,scanner,symbol}.c",
    "zbar/decoder/{codabar,code39,code93,code128,databar,ean,i25,qr_finder}.c",
    "zbar/qrcode/*.c",
    "iphone/*.m"
  ]
  
  s.resources = 'iphone/res/{zbar-*.png,zbar-help.html}'
  s.frameworks = [
    "AVFoundation",
    "CoreGraphics",
    "CoreMedia",
    "CoreVideo",
    "QuartzCore"
  ]
  s.libraries = 'iconv'
  s.xcconfig = {
    "EXCLUDED_SOURCE_FILE_NAMES[sdk=iphoneos*][arch=*]" => "ZBarReaderViewImpl_Simulator.m",
    "EXCLUDED_SOURCE_FILE_NAMES[sdk=iphonesimulator*][arch=*]"  => "ZBarReaderViewImpl_Capture.m ZBarCaptureReader.m",
    "GCC_PREPROCESSOR_DEFINITIONS" => "NDEBUG=1"
  }
  s.prefix_header_file = 'iphone/include/prefix.pch'
  s.compiler_flags = '-w'
  s.requires_arc = false
end
